package com.fc.common.log;

import java.io.IOException;
import java.util.Properties;

import com.fc.common.util.Config;
import com.fc.common.util.PropertiesUtils;

/** 
 * @ClassName: LoggingConfig 
 * @Description: TODO
 * @author wanghw 
 * @date 2016年5月25日 
 */
public class LoggingConfig {
	
	public static final String CONTROLLER_TAG = "$controller$";
	
	public static final String REQUEST_PARAMS_TAG = "$request_params$";
	
	public static final String REQUEST_URI_TAG = "$request_uri$";
	
	public static final String CLIENT_IP_TAG = "$client_ip$";
	
	public static final String OPERATION_TAG = "$operation$";
	
	public static final String START_TAG = "$start$";

	public static final String END_TAG = "$end$";
	
	public static final String SQL_TAG = "SQL:";
	
	
	public static String app;
	
	public static String env;
	
	public static String redismq;
	
	public static int maxTime;
	
	static{
		try {
			Properties p = PropertiesUtils.loadProperties("/log.properties");
			app=p.getProperty("log_app");
			env=p.getProperty("log_env");
			redismq=p.getProperty("log_redismq");
			maxTime=Integer.parseInt(p.getProperty("log.maxTime"));
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		};
		
	}
	
}
